Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add handlebars (startsWith, endsWith, match) #211

Merged
merged 3 commits into from
Nov 20, 2023

Conversation

McHill007
Copy link
Contributor

Add handlebar helpers

startsWith

|Name| My Value|
|---|---|
{{#each @root}}
{{#if (startsWith @key "My_")}}
| {{@key}} | {{this}}  |
{{/if}}
{{/each}}

endsWith

|Name| My Keys|
|---|---|
{{#each @root}}
{{#if (endsWith @key "_key")}}
| {{@key}} | {{this}}  |
{{/if}}
{{/each}}

match

|Key| Value|
|---|---|
{{#each @root}}
{{#if (match @key "^(Country|Street|Post)")}}
| {{@key}} | {{this}}  |
{{/if}}
{{/each}}

@McHill007 McHill007 closed this Sep 25, 2023
@mikhail-vl mikhail-vl reopened this Sep 25, 2023
@mikhail-vl mikhail-vl self-assigned this Sep 25, 2023
@mikhail-vl mikhail-vl added the enhancement New feature or request label Sep 25, 2023
@mikhail-vl mikhail-vl added this to the Version 4.2.0 milestone Sep 25, 2023
@mikhail-vl
Copy link
Member

@McHill007 We appreciate the contribution. I just have not had a chance to look at it yet.

It looks good overall, I will review later this week.

@mikhail-vl mikhail-vl self-requested a review October 10, 2023 01:31
@mikhail-vl mikhail-vl requested review from a team and removed request for mikhail-vl November 20, 2023 01:03
@mikhail-vl mikhail-vl changed the title Add handlebars (startswith, endswith, match) Add handlebars (startsWith, endsWith, match) Nov 20, 2023
Copy link
Member

@mikhail-vl mikhail-vl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@mikhail-vl mikhail-vl merged commit 5b4e5ca into VolkovLabs:main Nov 20, 2023
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants